  <template>
    <div>

      <formbuild  @form-saved="handleFormSaved"></formbuild>
    </div>
  </template>

  <script setup>
  import { ref, onMounted } from "vue";
  import Formbuild from "@/components/team/formbuild.vue";

  import axios from "axios";

  // 表单是否存在的状态
  const formCreated = ref(false);
  const formId = ref(null);

  /** 监听表单创建事件，切换到展示页面 */
  const handleFormSaved = (id) => {
    formCreated.value = true;
    formId.value = id;
  };

  // 在页面加载时检查是否已有表单
  onMounted(() => {
  });
  </script>
